<template>
  <div class="register">
    <div class="register_box">
      <p class="resl">登录账号</p>
      <p class="resl main-a">虾米 — 严选商城欢迎您</p>
      <div class="login-box main-a">
        <el-input class="input" placeholder="请输入手机号" v-model="inputs" @blur="sjh"></el-input>
        <el-input class="login-box-child " placeholder="请输入密码" v-model="input" show-password></el-input>
      </div>
      <button class="login-btn">登录</button>
      <p class="login-p">
        <span>忘记密码？</span>
      </p>
      <p class="login-p p">
        <span>还没有注册？</span>&nbsp;&nbsp;
        <span @click="gotoregister">立即注册</span>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input: "",
      inputs: ""
    };
  },
  methods: {
    gotoregister() {
      this.$router.push({
        path: "/register"
      });
    },
    sjh(){
      console.log('6532')
    }
  }
};
</script>

<style scoped>
.register {
  padding: 0.3rem;
}
.register_box {
  width: 6rem;
  padding: 0.4rem;
  height: 10rem;
  border: 0.008rem solid #F5F5F5;
  border-radius: 0.06rem;
}
.register_box > p:nth-child(1) {
  font-size: 0.4rem;
  color: gray;
}
.register_box > p:nth-child(2) {
  color: #909090;
  margin-top: 0.3rem;
}
.login-box {
  width: 80%;
  margin-left: 0.6rem;
}
.login-box-child {
  margin-top: 0.4rem;
}
.login-btn {
  height: 1rem;
  width: 3.5rem;
  display: block;
  outline: none;
  padding: 20px;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e570e7 0%, #79f1fc 100%);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-align: center;
  line-height: 14px;
  font-family: roboto, helvetica;
  font-weight: 200;
  letter-spacing: 1px;
  text-decoration: none;
  -webkit-box-shadow: 0 5px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 5px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 5px;
  border: 0;
  margin: 0 auto;
  margin-top: 0.6rem;
}
.login_p {
  text-align: center;
}
.login-p {
  text-align: center;
  margin-top: 0.5rem;
}
.resl {
  margin-left: 0.6rem;
}
.main-a {
  margin-top: 0.5rem;
}
.p {
  color: #79f1fc;
}
/deep/ .el-input__inner{
  background: #eceaea;
}
</style>